﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMasterPage.Master" AutoEventWireup="true" CodeBehind="SignUp.aspx.cs" Inherits="JobbJaktWeb.SignUp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="Home">
        <asp:Label ID="LabelSignUpUserName" runat="server" Text="Vänligen, ange ditt användarnamn:"></asp:Label>
        <br />
        <asp:TextBox ID="TextBoxSignUpUserName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorUserName" runat="server" ControlToValidate="TextBoxSignUpUserName" ForeColor="#CC0000">Får ej vara tom!</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="LabelSignUpPassWord" runat="server" Text="Vänligen, ange ditt nya lösenord:"></asp:Label>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassWord" runat="server" ControlToValidate="TextBoxSignUpPassWord" ForeColor="#CC0000">Får ej vara tom!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorPassWord" runat="server" ControlToValidate="TextBoxSignUpPassWord" ErrorMessage="Obs! Fel format." ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$"></asp:RegularExpressionValidator>
        <br />
        <asp:TextBox ID="TextBoxSignUpPassWord" runat="server" TextMode="Password"></asp:TextBox>
        <br />
        <asp:Label ID="Label1" runat="server" Text="Mellan 8 till tio tecken. Minst en siffra och en bokstav. Inga specialtecken"></asp:Label>
        <br />
        <asp:Button ID="ButtonSignUpRegistration" runat="server" Text="Registrera" OnClick="ButtonSignUpRegistration_Click" />
        <br />
        <asp:Label ID="LabelAlreadyExists" runat="server" ForeColor="#CC0000" Text="Användarnamnet eller lösenordet finns redan!" Visible="False"></asp:Label>
        <br />
    </div>

</asp:Content>
